﻿@model ManageReportVer1.Models.RoleModel

@{
    ViewBag.Title = "AddRole";
    Layout = "~/Views/Shared/_LayoutSecurityGuard.cshtml";
}
<div id="breadcrumb">
    @Html.ActionLink("Quản lý người dùng", "Index", "Account") >
    @Html.ActionLink("Danh sách phân quyền", "ViewRole", "Role") >
    Thêm mới phân quyền
</div>
<h2>AddRole</h2>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>RoleModel</legend>

        <div class="row">
            @Html.LabelFor(model => model.RoleName)
        </div>
        <div class="row">
            @Html.EditorFor(model => model.RoleName)
            @Html.ValidationMessageFor(model => model.RoleName)
        </div>

        <div class="row">
            @Html.LabelFor(model => model.Description)
        </div>
        <div class="row">
            @Html.TextAreaFor(model => model.Description)
            @Html.ValidationMessageFor(model => model.Description)
        </div>

        <p>
            <input type="submit" value="Create" />
        </p>
    </fieldset>
}

<div class="backToView">
    @Html.ActionLink("Quay lại danh sách phân quyền", "ViewRole")
</div>
